/**
 * /pagesMine/business_list
 */



import {
	request
} from "../utils/request.js";

/**
 * 是否首次训练
 * @param {*} data
 */
export const isFirstTrain = function() {
	return request({
		url: '/api/train/isFirstTrain',
		method: 'get',
	});
};
/**
 * 保存用户训练信息
 * @param {*} data
 */
export const saveUserActionInfo = function(data) {
	return request({
		url: '/api/train/addPersonInfo',
		method: 'post',
		data
	});
};
/**
 * 获取训练日程信息
 * @param {*} data
 */
export const getTrainDay = function(data) {
	return request({
		url: '/api/train/getTrainDay',
		method: 'get',
		params: data
	});
};

/**
 * 获取今天实际训练计划
 * @param {*} data
 */
export const getTrainNum = function(data) {
	return request({
		url: '/api/train/nowDayTrainNum',
		method: 'get',
		params: data
	});
};

/**
 * 推迟今天实际训练计划
 * @param {*} data
 */
export const delayPlan = function(data) {
	return request({
		url: '/api/train/postPoneDay',
		method: 'post',
		data
	});
};

/**
 * 提前今天实际训练计划
 * @param {*} data
 */
export const advancePlan = function(data) {
	return request({
		url: '/api/train/inAdvanceDay',
		method: 'post',
		data
	});
};
/**
 * 撤销所有训练计划
 * @param {*} data
 */
export const cancelPlan = function(data) {
	return request({
		url: '/api/train/cancel',
		method: 'post',
		data
	});
};

/**
 * 保存今天训练计划
 * @param {*} data
 */
export const saveTodayPlan = function(data) {
	return request({
		url: '/api/train/saveToday',
		method: 'post',
		data
	});
};